package day12.demo1;

/**
 * @Auther:小陈的Java
 */
public class ThreadDemo5 extends Thread{
    @Override
    public void run() {
        System.out.println(this.getName()+"运行中");
    }

    public static void main(String[] args) {
        ThreadDemo5 threadA = new ThreadDemo5();
        threadA.setName("A");
        threadA.setPriority(1);

        ThreadDemo5 threadB= new ThreadDemo5();
        threadB.setName("B");
        threadB.setPriority(5);

        ThreadDemo5 threadC = new ThreadDemo5();
        threadC.setName("C");
        threadC.setPriority(10);

        threadA.start();
        threadB.start();
        threadC.start();
    }
}
